package com.qiqidream.admin.monitor.service.impl;

import com.qiqidream.admin.monitor.model.entity.ErrorInfo;
import com.qiqidream.admin.monitor.service.ErrorService;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author QiQiDream
 * @since 2019/12/21 11:42
 */
@Service
public class ErrorServiceImpl implements ErrorService {

    @Resource
    private MongoTemplate mongoTemplate;


    @Override
    public void saveError(ErrorInfo errorInfo) {
        mongoTemplate.save(errorInfo);
    }
}
